import {
  useDispatch,
} from 'react-redux'
import {
  push,
} from './redux-first-history'
function Counter() {
  const dispatch = useDispatch()
  return <div>
    <p>counter</p>
    <button onClick={() => dispatch(push('/'))}>/home</button>
  </div>
}

export default Counter
